/*
 *      Copyright: Bernd Schubert <bschubert@ddn.com>
 *      License: GPLv3
*/

#ifndef _SD_HASH_H
#define _SD_HASH_H

#include "uthash.h"

void hash_add_dentry(dentry_t *dentry);
dentry_t *hash_find_dentry(uint64_t  inode);
void hash_add_fid(struct ost_fid *ost_fid);
struct ost_fid *hash_find_fid(uint64_t id);


struct mdt_dentry_hash {
	uint64_t  inode;
	dentry_t *dentry;
	UT_hash_handle hh; /* makes this structure hashable */
};

struct ost_fid_hash {
	uint64_t id;
	struct ost_fid *ost_fid;
	UT_hash_handle hh; /* makes this structure hashable */
};

#endif
